#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2021-11-23 17:01
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

# 定义配置的实例对象option
option = Options()
# 修改实例属性为debug模式启动的ip+port
option.debugger_address = "localhost:9222"
# 实例化driver的时候，添加options配置
driver = webdriver.Chrome(options=option)
driver.get("https://baidu.com")
